package com.keymozy.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

@Slf4j
@RestController
@CrossOrigin
public class TestController {
//    @Autowired
//    private FileClient fileClient;
    @PostMapping("/test")
    public String test(MultipartFile file,String data){
        log.info("进入了Test接口");
        log.info("fileName:"+file.getName());
        log.info("data:"+data);
        return "Okkkkkkk";
    }
}
